<form action="/website/addsite" id="addshipp" class="form-horizontal" role="form" method="post">
  <div class="form-group">
    <label class="col-sm-2 control-label">SiteID</label>
    <div class="col-sm-2">
      <input type="text" class="form-control" name="siteid" id="siteid" placeholder="SiteID 请从支付网关获取">
    </div>
  </div>
  <div class="form-group">
    <label for="domain" class="col-sm-2 control-label">域名</label>
    <div class="col-sm-2">
      <input type="text" class="form-control" name="domain" id="domain" placeholder="域名 domain.com">
    </div>
  </div>
  
  <div class="form-group">
    <label for="uid" class="col-sm-2 control-label">管理权限</label>
    <div class="col-sm-2">
      <select id="uid" name="uid" class="form-control">
        <?php foreach($dt['q'] as $v){?><option value="<?php echo $v->uid; ?>"><?php echo $v->nickname;?></option><?php } ?>    
      </select>
    </div>
  </div>
  <div class="form-group">
    <label for="sitencrypt" class="col-sm-2 control-label">网站密钥</label>
    <div class="col-sm-2">
      <input type="text" class="form-control" name="sitencrypt" id="sitencrypt" placeholder="" disabled value="<?php echo $dt['randomkey'];?>">
    </div>
  </div>
  <div class="form-group">
    <label for="smtpserver" class="col-sm-2 control-label">发信服务器</label>
    <div class="col-sm-2">
      <input type="text" class="form-control" name="smtpserver" id="smtpserver" placeholder="ssl://smtp.gmail.com" value="ssl://smtp.gmail.com" disabled>
    </div>
  </div>
  <div class="form-group">
    <label for="smtpuser" class="col-sm-2 control-label">邮件用户名</label>
    <div class="col-sm-2">
      <input type="text" class="form-control" name="smtpuser" id="smtpuser" placeholder="邮件用户名">
    </div>
  </div>
  <div class="form-group">
    <label for="smtppwd" class="col-sm-2 control-label">邮件密码</label>
    <div class="col-sm-2">
      <input type="text" class="form-control" name="smtppassword" id="smtppassword" placeholder="邮件密码">
    </div>
  </div>
  <div class="form-group">
    <label for="ssl" class="col-sm-2 control-label">是否使用ssl</label>
    <div class="col-sm-2">
      <input type="checkbox" name="ssl" id="ssl" checked="true" disabled />
    </div>
  </div>
  <div class="form-group">
    <label for="status" class="col-sm-2 control-label">网站状态</label>
    <div class="col-sm-2">
      <select id="status" name="status" class="form-control">
        <option value="1">激活</option>
        <option value="2">停用</option>        
      </select>
    </div>
  </div>
  
   <div class="form-group">
    <label class="col-sm-2 control-label">网站提成</label>
    <div class="col-sm-2">
      <input type="text" class="form-control" name="percentage" id="percentage" placeholder="提成百分比填小数">
    </div>
  </div>
  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default">添加</button>
    </div>
  </div>
</form>